package tsg.event;

public class MouseEvent extends InputEvent
{
	
	public static final int VK_NO_BUTTON	= -1;
	public static final int VK_BUTTON_1		= 1;
	public static final int VK_BUTTON_2		= 2;
	public static final int VK_BUTTON_3		= 3;
	
	public static final int MOUSE_CLICKED	= 1;
	public static final int MOUSE_ENTERED	= 2;
	public static final int MOUSE_EXITED	= 3;
	public static final int MOUSE_PRESSED	= 4;
	public static final int MOUSE_RELEASED	= 5;
	public static final int MOUSE_MOVED		= 6;
	public static final int MOUSE_DRAGGED	= 7;
	public static final int MOUSE_WHEEL		= 8;
	
	
	public MouseEvent(Object source) 
	{
		super			(source);
	}
	
	
	public MouseEvent(Object source, int x, int y, int type)
	{
		super			(source);
		this.setX		(x);
		this.setY		(y);
		this.setType	(type);
	}
	
	
	public MouseEvent(Object source, int x, int y, int type, int button)
	{
		super			(source);
		this.setX		(x);
		this.setY		(y);
		this.setType	(type);
		this.setButton	(button);
	}
	
	
	public int getX()
	{
		return _x;
	}
	
	public void setX(int x)
	{
		_x = x;
	}
	
	
	public int getY()
	{
		return _y;
	}
	
	public void setY(int y)
	{
		_y = y;
	}
	
	
	public int getButton()
	{
		return _button;
	}
	
	public void setButton(int button)
	{
		_button = button;
	}
	
	
	public int getType()
	{
		return _type;
	}
	
	public void setType(int type)
	{
		_type = type;
	}
	
	
	private int _x 		= -1;
	private int _y 		= -1;
	private int _button = VK_NO_BUTTON;
	private int _type	= -1;
}
